package com.itheima.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Select("select count(1) from t_order where SETMEAL_ID = #{sid} and ORDERDATE= #{orderdate} and MEMBER_ID = #{mid}")
    int findOrderBySetmealIdAndOrderDateAndMemberId(@Param("parseInt") int parseInt, @Param("orderdate") String orderdate, @Param("id") Integer id);
}
